<template>
  <div>
    <div class="dialog-content">
      <el-form
          ref="dealMajorForm"
          :model="dealMajorForm"
          :inline="true"
          style="
          max-height: 600px;
          overflow:hidden;
          overflow-y:auto;
          "
          label-width="200px"
          :rules="rules"
      >
        <el-form-item label="基金代码" prop="assetCode">
          <el-input v-model="dealMajorForm.assetCode" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="基金简称" prop="fundShortName">
          <el-input v-model="dealMajorForm.fundShortName" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="基金全称" prop="fundFullName">
          <el-input v-model="dealMajorForm.fundFullName" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="基金管理人名称" prop="fundManagerName">
          <el-input v-model="dealMajorForm.fundManagerName" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="基金属性" prop="fundProperty">
          <el-input v-model="dealMajorForm.fundProperty" :disabled=true>
          </el-input>
        </el-form-item>
        <el-form-item label="基金成立日期" prop="fundEstablishDate">
<!--          <el-date-picker-->
<!--              v-model="dealMajorForm.fundEstablishDate"-->
<!--              type="date"-->
<!--              placeholder="选择日期"-->
<!--              value-format="yyyy-MM-dd"-->
<!--              :disabled=true-->
<!--          >-->
<!--          </el-date-picker>-->
          <el-input v-model="dealMajorForm.fundEstablishDate"> </el-input>
        </el-form-item>
        <el-form-item label="基金认购结束日期" prop="fundSubscribeEndDate">
<!--          <el-date-picker-->
<!--              v-model="dealMajorForm.fundSubscribeEndDate"-->
<!--              type="date"-->
<!--              placeholder="选择日期"-->
<!--              value-format="yyyy-MM-dd"-->
<!--              :disabled=true-->
<!--          >-->
<!--          </el-date-picker>-->
          <el-input v-model="dealMajorForm.fundSubscribeEndDate"> </el-input>
        </el-form-item>
        <el-form-item label="上市日期" prop="listDate">
<!--          <el-date-picker-->
<!--              v-model="dealMajorForm.listDate"-->
<!--              type="date"-->
<!--              placeholder="选择日期"-->
<!--              value-format="yyyy-MM-dd"-->
<!--              :disabled=true-->
<!--          >-->
<!--          </el-date-picker>-->
          <el-input v-model="dealMajorForm.listDate"> </el-input>
        </el-form-item>
        <el-form-item label="存续开始日期" prop="existStartDate">
<!--          <el-date-picker-->
<!--              v-model="dealMajorForm.existStartDate"-->
<!--              type="date"-->
<!--              placeholder="选择日期"-->
<!--              value-format="yyyy-MM-dd"-->
<!--              :disabled=true-->
<!--          >-->
<!--          </el-date-picker>-->
          <el-input v-model="dealMajorForm.existStartDate"> </el-input>
        </el-form-item>

        <el-form-item label="存续结束日期" prop="existEndDate">
<!--          <el-date-picker-->
<!--              v-model="dealMajorForm.existEndDate"-->
<!--              type="date"-->
<!--              placeholder="选择日期"-->
<!--              value-format="yyyy-MM-dd"-->
<!--              :disabled=true-->
<!--          >-->
<!--          </el-date-picker>-->
          <el-input v-model="dealMajorForm.existEndDate"> </el-input>
        </el-form-item>


        <el-form-item label="有限期限标志" prop="isLimitTermFlag">
          <el-input v-model="dealMajorForm.isLimitTermFlag" :disabled=true> </el-input>
        </el-form-item>

        <el-form-item label="运作方式" prop="operationMode">
          <el-input v-model="dealMajorForm.operationMode" :disabled=true> </el-input>
        </el-form-item>

        <el-form-item label="货币代码" prop="currencyCode">
          <el-input v-model="dealMajorForm.currencyCode" :disabled=true> </el-input>
        </el-form-item>

        <el-form-item label="投资类型" prop="investType">
          <el-input v-model="dealMajorForm.investType" :disabled=true> </el-input>
        </el-form-item>


        <el-form-item label="最新份额" prop="latestShare">
          <el-input v-model="dealMajorForm.latestShare" :disabled=true> </el-input>
        </el-form-item>




        <el-form-item label="基金单位价值" prop="fundUnitValue">
          <el-input v-model="dealMajorForm.fundUnitValue" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="基金投资一级分类" prop="hfFundClassFirst">
          <el-input v-model="dealMajorForm.hfFundClassFirst" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="基金投资二级分类" prop="hfFundClassSecond">
          <el-input v-model="dealMajorForm.hfFundClassSecond" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="证监会基金分类" prop="hfFundClassCsrc">
          <el-input v-model="dealMajorForm.hfFundClassCsrc" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="期末持股比例" prop="hfEndHoldingStockProp">
          <el-input v-model="dealMajorForm.hfEndHoldingStockProp" :disabled=true>
          </el-input>
        </el-form-item>
        <el-form-item label="预计封闭期结束日" prop="hfForcastClosedEndDate">
          <el-input v-model="dealMajorForm.hfForcastClosedEndDate" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="基金类型" prop="hfFundType">
          <el-input v-model="dealMajorForm.hfFundType" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="申购赎回状态" prop="hfSubscribeRedeemStatus">
          <el-input v-model="dealMajorForm.hfSubscribeRedeemStatus" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="被代理人所属部门" prop="hfAgentDepartment">
          <el-input v-model="dealMajorForm.hfAgentDepartment" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="持有SPV股权比例" prop="hfSpbHoldingProp">
          <el-input v-model="dealMajorForm.hfSpbHoldingProp" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="是否定期开放基金" prop="hfIsRegularOpenFundFlag">
          <el-input v-model="dealMajorForm.hfIsRegularOpenFundFlag" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="被代理人所属国家" prop="hfAgentCountry">
          <el-input v-model="dealMajorForm.hfAgentCountry" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="预计下期开放日" prop="hfForcastNextOpenDate">
          <el-input v-model="dealMajorForm.hfForcastNextOpenDate" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="申报主体身份" prop="hfDeclareEntityRole">
          <el-input v-model="dealMajorForm.hfDeclareEntityRole" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="是否分红" prop="hfDividendFlag">
          <el-input v-model="dealMajorForm.hfDividendFlag" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="每日估值截止时间" prop="hfCutOffTime">
          <el-input v-model="dealMajorForm.hfCutOffTime" :disabled=true> </el-input>
        </el-form-item>


        <el-form-item label="每日估值截止时区" prop="hfCutOffTimeZone">
          <el-input v-model="dealMajorForm.hfCutOffTimeZone" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="交易日期与结算日期间隔" prop="hfSettlementDays">
          <el-input v-model="dealMajorForm.hfSettlementDays" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="单位价值小数位" prop="hfUnitValueDecimal">
          <el-input v-model="dealMajorForm.hfUnitValueDecimal" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="是否定制基金" prop="hfCustomFunds">
          <el-input v-model="dealMajorForm.hfCustomFunds" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="基金发行地" prop="hfFundIssuePlace">
          <el-input v-model="dealMajorForm.hfFundIssuePlace" :disabled=true> </el-input>
        </el-form-item>



        <el-form-item label="投资工具类型" prop="hfInvestInstrumentType">
          <el-input v-model="dealMajorForm.hfInvestInstrumentType" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="基金业务类型" prop="hfFundBusinessType">
          <el-input v-model="dealMajorForm.hfFundBusinessType" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="申购基金出资方式" prop="hfSubsCapitalRaiseMode">
          <el-input v-model="dealMajorForm.hfSubsCapitalRaiseMode" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="被投资机构代码" prop="hfInvestedOrgCode">
          <el-input v-model="dealMajorForm.hfInvestedOrgCode" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="被投资机构行业" prop="hfInvestedOrgIndustry">
          <el-input v-model="dealMajorForm.hfInvestedOrgIndustry" :disabled=true> </el-input>
        </el-form-item>

        <el-form-item label="被投资机构关系" prop="hfInvestedOrgRelation">
          <el-input v-model="dealMajorForm.hfInvestedOrgRelation" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="最终控制方全称" prop="hfFinalControlFullName">
          <el-input v-model="dealMajorForm.hfFinalControlFullName" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="最终控制方国家" prop="hfFinalControlCountry">
          <el-input v-model="dealMajorForm.hfFinalControlCountry" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="期末表决权比例" prop="hfEndTermVotingProp">
          <el-input v-model="dealMajorForm.hfEndTermVotingProp" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="持有被投资机构" prop="hfHoldingInvestedOrg">
          <el-input v-model="dealMajorForm.hfHoldingInvestedOrg" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="SPV所属国家" prop="hfSpvBelongCountry">
          <el-input v-model="dealMajorForm.hfSpvBelongCountry" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="SPV名称" prop="hfSpvName">
          <el-input v-model="dealMajorForm.hfSpvName" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="SPV代码" prop="hfSpvCode">
          <el-input v-model="dealMajorForm.hfSpvCode" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="SPV所属部门" prop="hfSpvBelongDepart">
          <el-input v-model="dealMajorForm.hfSpvBelongDepart" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="被投资机构已上市" prop="hfInvestedOrgListFlag">
          <el-input v-model="dealMajorForm.hfInvestedOrgListFlag" :disabled=true> </el-input>
        </el-form-item>
        <el-form-item label="最新规模" prop="latestAmount">
          <el-input v-model="dealMajorForm.latestAmount"> </el-input>
        </el-form-item>
        <el-form-item label="近3月收益率" prop="avgReturnQuarter">
          <el-input v-model="dealMajorForm.avgReturnQuarter"> </el-input>
        </el-form-item>
        <el-form-item label="近1年收益率" prop="avgReturnYear">
          <el-input v-model="dealMajorForm.avgReturnYear"> </el-input>
        </el-form-item>
        <el-form-item label="基金公司" prop="fundCom">
          <el-input v-model="dealMajorForm.fundCom"> </el-input>
        </el-form-item>
        <el-form-item label="贡献度排名" prop="contributeOrder">
          <el-input v-model="dealMajorForm.contributeOrder"> </el-input>
        </el-form-item>
        <el-form-item label="客户类型" prop="custCat">
          <el-input v-model="dealMajorForm.custCat"> </el-input>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: '新增',
    },
    dealMajorForm:{
      type: Object,
      default:{},
    }
  },

  data() {
    return {
      importToFromTypeOptions: [],
      importDireOptions: [],
      importGroupOptions: [],
      dealStatus: [
        {
          label: '新增',
          value: 'I',
        },
        {
          label: '修改',
          value: 'U',
        },
        {
          label: '删除',
          value: 'D',
        },
      ],
      rules: {
        tradeStatus: [{ required: true, message: '必填项', trigger: 'blur' }],
        dataBatchDate: [{ required: true, message: '必填项', trigger: 'blur' }],
        productName: [{ required: true, message: '必填项', trigger: 'blur' }],
        tradeType: [{ required: true, message: '必填项', trigger: 'blur' }],
        bookName: [{ required: true, message: '必填项', trigger: 'blur' }],
        cptFullCnnm: [{ required: true, message: '必填项', trigger: 'blur' }],
        tradeDate: [{ required: true, message: '必填项', trigger: 'blur' }],
      },
      TradeDataCenterCptFullCnnmDialogVisible: false,
    }
  },
}
</script>

<style lang="scss" scoped>
.dialog-content {
  margin-bottom: 15px;
  .content-title {
    background-color: #354060;
    line-height: 36px;
    text-align: center;
  }
  .form-content {
    padding: 16px 0;
  }
}
.search-icon {
  position: absolute;
  top: 0;
  right: -36px;
  color: #fff;
  z-index: 999;
  background-color: #1f9bfd;
  line-height: 32px;
  width: 32px;
  text-align: center;
  border-radius: 2px;
  cursor: pointer;
}

</style>
